package com.health.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.health.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.health.entity.pojo.PageData;
import com.health.entity.pojo.dto.AdminDTO;
import com.health.entity.pojo.dto.DeleteAdminShelvesMultiDTO;
import com.health.entity.pojo.vo.AdminVO;
import com.health.entity.pojo.vo.QueryAdminVO;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

/**
 * <p>
 * 后台管理员表 服务类
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-14
 */
public interface IAdminService extends IService<Admin> {
    Admin dologin(String username);

    AdminVO findUserInfo(String token);

    IPage<QueryAdminVO> listAdminPage(Integer pageNum, Integer pageSize, AdminDTO adminDTO);


    Boolean saveAdminRole(Integer aid, Integer rid);

    Boolean upadteAdminRole(Integer aid, Integer rid);

    /**
     * 根据ID删除管理人员
     * @param id
     * @return
     */
    Boolean deleteAdminRole(Integer id,Integer rid);

    Boolean deleteAdminRoleMulti(List<DeleteAdminShelvesMultiDTO> selectedData);

}
